Repository navigation
Docs link check stops hiding sections after inline code, /learn prune checks every learning, /retro counts Godot test runners - #4677
Merged
Conversation
…est census and root-only test failures The docs link check and prose check follow CommonMark fences, so a line that opens with inline code no longer hides the rest of the file (#4391, #4393). /learn prune reads every learning through a new --all flag (#4215). /retro counts a test runner kept in tests/ without a test-style name and skips engine sidecar files (#4306). Five bootstrap retention cases skip as root, where the denial they need cannot happen (#4425). Co-authored-by: Davmunrey <108531295+Davmunrey@users.noreply.github.com> Co-authored-by: huongtran84 <4927097+huongtran84@users.noreply.github.com> Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
This was referenced Nov 22, 2026
Merged
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Four small fixes from outside reports: the docs link and prose checks no longer treat a line that starts with inline code as a code block, /learn prune reads every learning instead of the first 100, /retro counts a test runner in
tests/and skips game-engine sidecar files, and five tests that cannot work as root now skip there.Why: each one was reproduced on main and gave a wrong answer (refused valid links, skipped stale learnings, a test total of 0, red tests as root).
Nothing to do after merge.
Security read
No CI, install, dependency, network, auth or process-spawning change. The outside PRs were read as text only and rebuilt on main;
gstack-learnings-search --allonly lifts an output limit on a local file the user already reads.What changed
People hit four wrong answers. A valid docs link was refused, /learn prune quietly skipped old learnings on bigger projects, /retro reported zero test files on a Godot repo, and the free suite went red when run as root. Each now gives the right answer.
troubleshooting.md#unattended-runs-and-artifactsfailsscripts/check-doc-links.tswithDOC_LINKS: broken 2. Over all tracked Markdown, 6 false broken links.lib/doc-links.tsandlib/prose-lint.tsread fences as CommonMark does: a backtick fence's info string has no backtick, and only a bare run at least as long as the opener closes it. All tracked Markdown: 185 → 179 broken links, 0 newly reported.--limit 100list omits the one stale entry, and the summary gives no sign of the cut.gstack-learnings-search --all; the prune row uses it. The query-only "more matched" notice is unchanged.TEST_FILES_TOTAL: 0,TEST_FILES_CHANGED: 2(the.uidsidecar)..uid,.importand.metanever count as tests.bun test test/bootstrap-retention.test.tsgives 32 pass, 5 fail.Why
"Adding a correct link fails the docs check" (#4391), "prune never sees my oldest learnings" (#4215), "/retro says I have no tests" (#4306) and "the free tests fail as root" (#4425). After this change the link check, prune, the test census and the root run all report what is actually there.
Blast radius
The fence change also alters how the prose check masks code in every Markdown file. A second-model review diffed the old and new parser over every tracked
.mdfile. Only 5 files parse differently, each a nested four-backtick fence the old parser closed too early, and the link check passes on all 5 (script ran).--allis a new flag;--limit 0is still refused, so no existing caller changes (repro).Pre-Landing Review
No blocking issues. The main review found one test-coverage note (the root check uses the user id where the real condition is the ptrace capability, so a root container without that capability skips cases it could run; CI runs as a normal user, so CI coverage is unchanged). It was left as a note. A second-model adversarial review recommended shipping as-is and raised four low-severity notes, listed below.
Review notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
lib/doc-links.ts:22unclosed fence silently masks later links; prose-lint reports it, doc-links does notbin/gstack-retro-metrics:401no-convention fallback counts fixture data, snapshots and .gitkeep under tests/ as test fileslearn/SKILL.md.tmpl:40prune reads an unbounded list into context on very large storestest/bootstrap-retention.test.ts:113uid check is a proxy for CAP_SYS_PTRACE (duplicate of specialist-batched#1)Exploratory QA
Functional smoke, 4 probes on isolated fixtures, all pass: /retro on a Godot fixture reports 1 test file, 1 changed, 1 inserted line; the link check on a fixture with an inline-code line and a tilde fence whose info string holds backticks reports only the truly broken anchor;
gstack-learnings-search --limit 0still exits 2; on a 12-entry store--allprints 12 and the default prints 10. Not probed: the /learn prune agent flow and the root-only skips (the latter needs a root shell; the repro above covers it).Eval Results
The eval selector (profile pr) picked no quality judges. It listed behavioral cases that depend on
lib/doc-links.tsandlib/prose-lint.ts; the selector marks those as scheduled release coverage, not PR runs, so no paid eval ran for this PR.Scope Drift
Scope Check: CLEAN. Intent: fix the four outside reports. Delivered: those four fixes, their tests and one changelog fragment.
Plan Completion
Plan completion audit: not run (no plan is bound to this branch and no docs/designs/ file matches). This is a bug fix with repros in the table above.
Verification Results
No plan-specific checks (bug fix, no plan file). The exploratory smoke above is the verification: 4 PASS, 0 FAIL, 0 BLOCKED, 0 NOT RUN.
TODOS
No TODO items completed in this PR.
Issues
Refs #4391
Refs #4393
Refs #4215
Refs #4306
Refs #4425
Documentation
Status: current. The docs already match the change, so nothing was edited.
Scope: 12 committed files on fix/outside-docs-lint-retro-learn, compared with c2b4f0d. Nothing was staged, unstaged or untracked. The changes are the CommonMark fence fix in lib/doc-links.ts and lib/prose-lint.ts, the new
--alloption forgstack-learnings-search(now used by /learn prune), the /retro test-file fallback and the engine-sidecar exclusion, and the bootstrap-retention skips when the suite runs as root.Documentation health:
--all.TEST_FILES_TOTALcorrectly.Debt: There is no coverage debt and no diagram drift. The
--alloption is documented in the binary's--helpand in the /learn table.Tests
bun test test/parity-suite.test.ts: 2 pass. Pre-push guards: typecheck, skill-size, parity-suite, context-budget, module-size, goldens, conflict-markers all pass.Agent notes
Outside-report lane GSTA-802 (GST-3484).
Approvals
No approvals recorded for branch fix/outside-docs-lint-retro-learn.
Plan: exempt: bug fix (--kind fix); repro on main c2b4f0d is in the PR body
REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=4 fixed=0 scope=frozen unbound=1 ledgers_read=3 dispatches=4
Gate edits: none detected (7 listed, 3 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Pre-Landing Review: 1 issue — 0 auto-fixed, 1 asked (0 fixed, 1 skipped), 0 deferred, 0 noted
Adversarial (native, Claude Opus 5.5): 4 noted, 0 blocking. Second-family outside voice: not planned (code class, no numeric claims).
🤖 Generated with Claude Code